package com.lzs.baseruku.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lzs.baseruku.mapper.WarehousingDetailMapper;
import com.lzs.baseruku.service.WarehousingDetailService;
import com.lzs.entity.WarehousingDetail;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ymx
 * @since 2020-11-25
 */
@Service
public class WarehousingDetailServiceImpl extends ServiceImpl<WarehousingDetailMapper, WarehousingDetail> implements WarehousingDetailService {

    @Override
    public Page<WarehousingDetail> lookWarehousingDetail(Integer page, Integer limit, Long id) {
        Page<WarehousingDetail> pageInfo=new Page<>(page,limit);
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("pid",id);
        this.baseMapper.selectPage(pageInfo,queryWrapper);
        return pageInfo;
    }
}
